<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet"
	href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" />
<title>Group editing</title>
</head>
<body>
<div class="container">
	<h1>Update group</h1>
	<form:form method="POST" commandName="group"
		action="${pageContext.request.contextPath}/group/edit/${group.id}">
		<table>
			<tbody>
				<tr>
					<td>Group id:</td>
					<td><form:input path="id" readonly="true"/></td>
					<td><form:errors path="id" cssStyle="color: red;" /></td>
				</tr>
				<tr>
					<td>Group name:</td>
					<td><form:input path="name" /></td>
					<td><form:errors path="name" cssStyle="color: red;" /></td>
				</tr>

				<tr>
					<td><input type="submit" value="Edit group information" /></td>
					<td></td>
					<td></td>
				</tr>
			</tbody>
		</table>
	</form:form>
	<a href="${pageContext.request.contextPath}/group/list">All
		groups</a>
</div>
</body>
</html>